<div id="product-list">
    <h2> My Personal Blog</h2>
    <p style="color: green"><%= flash[:notice] %></p>

  <table cellpadding="5"  cellspacing="0" >
      <%= render :partial=> "post", :collection => @posts.reverse %>
  </table>

  	<%= will_paginate @posts %>

</div>
<%= link_to '新文章', new_post_path %>
